import deviceStorage from '../utils/deviceStorage';
const KEY = 'searchKeys';
class searchKeys {
  /**
   * 存储数据
   */
  static save(value) {
    return deviceStorage.save(KEY, value);
  }

  /**
   * 删除数据
   * @returns {Promise.<void>}
   */
  static clear() {
    return deviceStorage.delete(KEY);
  }

  /**
   * 获取数据
   */
  static getData() {
    return deviceStorage.get(KEY);
  }
}

export default searchKeys;
